<?php
class App_infoModel extends RelationModel{
    protected $_link=array(
        'app_link'=>array(
            'mapping_type'=>HAS_MANY,//HAS_ONE查询出一条
            'class_name'=>'app_link',
            'mapping_name'=>'app_link',
            'foreign_key'=>'app_id',
            //'mapping_fields'=>array('id','uid','title'),
            //'as_fields'=>'title,id:goodid',
            //'condition'=>'',//筛选条件
            //'foreign_key'=>'',//外键
            //'mapping_fields'=>'',//关联字段
            //as_fields
        ),   
    );   
}
?>